package com.hefeng.wx.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备报警信息表;
 * @author : http://www.chiner.pro
 * @date : 2022-9-5
 */
@Data
@ApiModel(value = "设备报警信息表",description = "")
@TableName("wx_device_report")
public class WxDeviceReport implements Serializable,Cloneable{
    /** 报警编号 */
    @TableId(type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(name = "报警编号",notes = "")
    private Long reportId ;
    /** 设备编号 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(name = "设备id",notes = "")
    private Long deviceId ;
    @ApiModelProperty(name = "设备Code",notes = "")
    private String deviceCode ;
    /** 用户编号 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(name = "用户编号",notes = "")
    private Long userId ;
    /** 报警时间 */
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @ApiModelProperty(name = "报警时间",notes = "")
    private Date reportTime ;
    /** 报警标题 */
    @ApiModelProperty(name = "报警标题",notes = "")
    private String reportTitle ;
    /** 报警内容 */
    @ApiModelProperty(name = "报警内容",notes = "")
    private String reportContent ;
    /**
     * 报警值
     */
    @ApiModelProperty(name = "报警值", notes = "")
    private Double reportValue;
    /**
     * 报警类型;（1：报警   2：故障，3：离线）
     */
    @ApiModelProperty(name = "报警类型", notes = "（1：报警   2：故障，3：离线）")
    private String reporType;
    @ApiModelProperty(name = "是否发送短信", notes = "（ 0：未发送 1：发送成功 2：发送失败）")
    private int isMsg;
    @ApiModelProperty(name = "短信表主键", notes = "")
    private Long msgId;
    @ApiModelProperty(name = "短信发送时间", notes = "")
    private Date msgTime;
    /**
     * 创建时间
     */
    @ApiModelProperty(name = "创建时间", notes = "")
    private Date createdTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(name = "更新时间", notes = "")
    private Date updatedTime;


}
